package com.lp.graph;


import java.util.ArrayList;
import java.util.List;
import lombok.Data;



/**
 * 顶点
 */
@Data
public class Node {
    //顶点的值
    private int value;
    //入度
    private int in;
    //出度
    private int out;

    //从当前节点出发的领接点
    private List<Node> nextNodes;

    public Node(int value) {
        this.value = value;
        in = 0;
        out = 0;
        nextNodes = new ArrayList<>();
    }

}
